package fun.werfamily.wf.auth.core.service;


import fun.werfamily.wf.auth.core.dto.UserLoginReqDTO;
import fun.werfamily.wf.auth.core.dto.UserTokenDTO;
import fun.werfamily.wf.auth.core.dto.VerifyCodeReqDTO;
import jakarta.servlet.http.HttpServletRequest;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Mr.WenMing Zhang
 * @Date: 2023-04-03 23:15
 * @Description:
 */
public interface AuthService {
    /**
     * 账号密码登录
     *
     * @param userLoginReqDTO
     * @return
     */
    UserTokenDTO userNameLogin(UserLoginReqDTO userLoginReqDTO);

    /**
     * 手机验证码登陆
     *
     * @param verifyCodeReqDTO
     * @return
     */
    UserTokenDTO verifyLogin(VerifyCodeReqDTO verifyCodeReqDTO);

    /**
     * 退出登录
     *
     * @param request
     * @return
     */
    boolean logout(HttpServletRequest request);
}
